package com.hmall.mapper;

import com.hmall.model.MallTransport;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallTransportMapper extends MyMapper<MallTransport> {

    List<MallTransport> selectByUserId(@Param("userId") Integer userId);

    void updateResetDefaultCheck(@Param("userId") Integer userId);

    void updateTransport(@Param("transport") MallTransport mallTransport);

    void updateOneDefaultCheck(@Param("transportId") Integer transportId, @Param("defaultCheck") Integer defaultCheck);
}